<?php

/**
 * @filename ListAction.class.php 
 * @encoding UTF-8 
 * @author yuzhiyuan <307090870@qq.com>
 * @copyright copyright 2013 (c) Emagsoftware Technology Co., Ltd. All Rights reserved.
 * @license ……
 * @datetime 2013-6-23  0:40:38
 * @version 1.0
 * @Description
  */
class ListAction extends Action {
    public function index(){
    	$id = I('id',intval,0);
    	$list = M('Post')->where("c_id = ".$id)->select();
    	$this->assign('list',$list);
        $this->display();
    }
}